<?php use_helper('I18N') ?>
<form action="<?php echo url_for('@sf_guard_register') ?>" method="post">
<table>
    <?php if($form->hasGlobalErrors()):?>
      <thead>
        <tr><td colspan="3" class="global-error"><?php echo $form->renderGlobalErrors() ?></td></tr>
      </thead>
    <?php endif; ?>
    <tbody>
      <?php foreach ($form as $widget): ?>
        <?php if(!$widget->isHidden()): ?>
          <tr <?php echo $widget->getName() == 'company' ? 'style="display:none"' : '' ?>>
            <td><?php echo $widget->renderLabel() ?></td>
            <td><?php echo $widget->render() ?></td>
            <?php if($widget->hasError()): ?>
              <td><?php echo $widget->renderError() ?></td>
            <?php endif; ?>
          </tr>
        <?php endif; ?>
      <?php endforeach; ?>
      <?php echo $form->renderHiddenFields() ?>
    </tbody>
    <tfoot>
      <tr>
        <td></td>
        <td colspan="2">
          <input type="submit" name="register" value="<?php echo __('Register') ?>"> 
        </td>
      </tr>
    </tfoot>
  </table>
  </form>